//
//  MenuCollectionViewCell.m
//  项目三
//
//  Created by rimi1 on 2016/12/8.
//  Copyright © 2016年 Wangxingqian. All rights reserved.
//

#import "MenuCollectionViewCell.h"

@implementation MenuCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self.contentView addSubview:self.title];
    }
    return self;
}

#pragma mark - get

- (UILabel *)title {
    
    if (!_title) {
        
        _title = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.bounds.size.width, self.bounds.size.height)];
        _title.font = [UIFont systemFontOfSize:WXQAdaptionHeight(16)];
        _title.textAlignment = NSTextAlignmentCenter;
        
    }
    return _title;
}

@end
